package com.itcast.home_work.pet_manager;

// 宠物类
public abstract class Pet {
    PetType type; // 类型
    String color;

    public PetType getType() {
        return type;
    }

    public void setType(PetType type) {
        this.type = type;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    int age;

    protected abstract void shout();
}
